<?php

class Application_Form_RegisterEmail extends Zend_Form
{

    public function init()
    {
        $this->addElement('text', 'user_email', array(
            'label' => 'Електронна пошта',
            'required' => true,
            'validators' => array(
                'emailAddress'
            )
        ));

        $this->addElement('text', 'user_login', array(
            'label' => 'Логін',
            'required' => true,
            'validators' => array(
                array('stringLength', false, array(5, 45))
            )
        ));

        $this->addElement('password', 'user_password', array(
            'label' => 'Пароль',
            'required' => true,
            'validators' => array(
                array('stringLength', false, array(5, 45))
            )
        ));

        $this->addElement('submit', 'submit', array(
            'label' => 'ОК'
        ));
    }

    public function isValid($data){
        return parent::isValid($data);
    }
}

